Optimal. Leaf size=82 \[ \frac {2 b x^{-n} (e x)^n \tanh ^{-1}\left (\frac {a-b \tanh \left (\frac {1}{2} \left (c+d x^n\right )\right )}{\sqrt {a^2+b^2}}\right )}{a d e n \sqrt {a^2+b^2}}+\frac {(e x)^n}{a e n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.14, antiderivative size = 82, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {5441, 5437, 3783, 2660, 618, 204} \[ \frac {2 b x^{-n} (e x)^n \tanh ^{-1}\left (\frac {a-b \tanh \left (\frac {1}{2} \left (c+d x^n\right )\right )}{\sqrt {a^2+b^2}}\right )}{a d e n \sqrt {a^2+b^2}}+\frac {(e x)^n}{a e n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 2660
Rule 3783
Rule 5437
Rule 5441
Rubi steps
\begin {align*} \int \frac {(e x)^{-1+n}}{a+b \text {csch}\left (c+d x^n\right )} \, dx &=\frac {\left (x^{-n} (e x)^n\right ) \int \frac {x^{-1+n}}{a+b \text {csch}\left (c+d x^n\right )} \, dx}{e}\\ &=\frac {\left (x^{-n} (e x)^n\right ) \operatorname {Subst}\left (\int \frac {1}{a+b \text {csch}(c+d x)} \, dx,x,x^n\right )}{e n}\\ &=\frac {(e x)^n}{a e n}-\frac {\left (x^{-n} (e x)^n\right ) \operatorname {Subst}\left (\int \frac {1}{1+\frac {a \sinh (c+d x)}{b}} \, dx,x,x^n\right )}{a e n}\\ &=\frac {(e x)^n}{a e n}+\frac {\left (2 i x^{-n} (e x)^n\right ) \operatorname {Subst}\left (\int \frac {1}{1-\frac {2 i a x}{b}+x^2} \, dx,x,i \tanh \left (\frac {1}{2} \left (c+d x^n\right )\right )\right )}{a d e n}\\ &=\frac {(e x)^n}{a e n}-\frac {\left (4 i x^{-n} (e x)^n\right ) \operatorname {Subst}\left (\int \frac {1}{-4 \left (1+\frac {a^2}{b^2}\right )-x^2} \, dx,x,-\frac {2 i a}{b}+2 i \tanh \left (\frac {1}{2} \left (c+d x^n\right )\right )\right )}{a d e n}\\ &=\frac {(e x)^n}{a e n}+\frac {2 b x^{-n} (e x)^n \tanh ^{-1}\left (\frac {b \left (\frac {a}{b}-\tanh \left (\frac {1}{2} \left (c+d x^n\right )\right )\right )}{\sqrt {a^2+b^2}}\right )}{a \sqrt {a^2+b^2} d e n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.17, size = 84, normalized size = 1.02 \[ \frac {(e x)^n \left (-\frac {2 b x^{-n} \tan ^{-1}\left (\frac {a-b \tanh \left (\frac {1}{2} \left (c+d x^n\right )\right )}{\sqrt {-a^2-b^2}}\right )}{\sqrt {-a^2-b^2}}+c x^{-n}+d\right )}{a d e n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.43, size = 248, normalized size = 3.02 \[ \frac {{\left (a^{2} + b^{2}\right )} d \cosh \left ({\left (n - 1\right )} \log \relax (e)\right ) \cosh \left (n \log \relax (x)\right ) + {\left (a^{2} + b^{2}\right )} d \cosh \left (n \log \relax (x)\right ) \sinh \left ({\left (n - 1\right )} \log \relax (e)\right ) + {\left (\sqrt {a^{2} + b^{2}} b \cosh \left ({\left (n - 1\right )} \log \relax (e)\right ) + \sqrt {a^{2} + b^{2}} b \sinh \left ({\left (n - 1\right )} \log \relax (e)\right )\right )} \log \left (\frac {a b + {\left (a^{2} + b^{2} + \sqrt {a^{2} + b^{2}} b\right )} \cosh \left (d \cosh \left (n \log \relax (x)\right ) + d \sinh \left (n \log \relax (x)\right ) + c\right ) - {\left (b^{2} + \sqrt {a^{2} + b^{2}} b\right )} \sinh \left (d \cosh \left (n \log \relax (x)\right ) + d \sinh \left (n \log \relax (x)\right ) + c\right ) + \sqrt {a^{2} + b^{2}} a}{a \sinh \left (d \cosh \left (n \log \relax (x)\right ) + d \sinh \left (n \log \relax (x)\right ) + c\right ) + b}\right ) + {\left ({\left (a^{2} + b^{2}\right )} d \cosh \left ({\left (n - 1\right )} \log \relax (e)\right ) + {\left (a^{2} + b^{2}\right )} d \sinh \left ({\left (n - 1\right )} \log \relax (e)\right )\right )} \sinh \left (n \log \relax (x)\right )}{{\left (a^{3} + a b^{2}\right )} d n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (e x\right )^{n - 1}}{b \operatorname {csch}\left (d x^{n} + c\right ) + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.76, size = 319, normalized size = 3.89 \[ \frac {x \,{\mathrm e}^{\frac {\left (-1+n \right ) \left (-i \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )+i \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i e x \right )^{2}+i \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )^{2}-i \pi \mathrm {csgn}\left (i e x \right )^{3}+2 \ln \relax (x )+2 \ln \relax (e )\right )}{2}}}{a n}-\frac {2 b \,{\mathrm e}^{-\frac {i \pi n \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )}{2}} {\mathrm e}^{\frac {i \pi n \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i e x \right )^{2}}{2}} {\mathrm e}^{\frac {i \pi n \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )^{2}}{2}} {\mathrm e}^{-\frac {i \pi n \mathrm {csgn}\left (i e x \right )^{3}}{2}} {\mathrm e}^{\frac {i \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )}{2}} {\mathrm e}^{-\frac {i \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i e x \right )^{2}}{2}} {\mathrm e}^{-\frac {i \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )^{2}}{2}} {\mathrm e}^{\frac {i \pi \mathrm {csgn}\left (i e x \right )^{3}}{2}} e^{n} {\mathrm e}^{c} \arctan \left (\frac {2 a \,{\mathrm e}^{2 c +d \,x^{n}}+2 \,{\mathrm e}^{c} b}{2 \sqrt {-a^{2} {\mathrm e}^{2 c}-b^{2} {\mathrm e}^{2 c}}}\right )}{a n e d \sqrt {-a^{2} {\mathrm e}^{2 c}-b^{2} {\mathrm e}^{2 c}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ -2 \, b e^{n} \int \frac {e^{\left (d x^{n} + n \log \relax (x) + c\right )}}{a^{2} e x e^{\left (2 \, d x^{n} + 2 \, c\right )} + 2 \, a b e x e^{\left (d x^{n} + c\right )} - a^{2} e x}\,{d x} + \frac {e^{n - 1} x^{n}}{a n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 8.66, size = 410, normalized size = 5.00 \[ \frac {x\,{\left (e\,x\right )}^{n-1}}{a\,n}-\frac {\left (2\,\mathrm {atan}\left (\frac {x\,{\left (e\,x\right )}^{n-1}\,\sqrt {-a^2\,d^2\,n^2\,x^{2\,n}\,\left (a^2+b^2\right )}}{a\,d\,n\,x^n\,\sqrt {b^2\,x^2\,{\left (e\,x\right )}^{2\,n-2}}}\right )-2\,\mathrm {atan}\left (\frac {a^2\,{\mathrm {e}}^{d\,x^n}\,{\mathrm {e}}^c\,\left (\frac {2\,b\,x\,{\left (e\,x\right )}^{n-1}}{a^4\,d\,n\,x^n\,\sqrt {b^2\,x^2\,{\left (e\,x\right )}^{2\,n-2}}}+\frac {2\,b\,d\,n\,x^n\,{\left (e\,x\right )}^{1-n}\,\sqrt {b^2\,x^2\,{\left (e\,x\right )}^{2\,n-2}}}{a^2\,x\,\sqrt {-a^4\,d^2\,n^2\,x^{2\,n}-a^2\,b^2\,d^2\,n^2\,x^{2\,n}}\,\sqrt {-a^2\,d^2\,n^2\,x^{2\,n}\,\left (a^2+b^2\right )}}\right )\,\sqrt {-a^4\,d^2\,n^2\,x^{2\,n}-a^2\,b^2\,d^2\,n^2\,x^{2\,n}}}{2}-\frac {a\,d\,n\,x^n\,{\left (e\,x\right )}^{1-n}\,\sqrt {b^2\,x^2\,{\left (e\,x\right )}^{2\,n-2}}}{x\,\sqrt {-a^2\,d^2\,n^2\,x^{2\,n}\,\left (a^2+b^2\right )}}\right )\right )\,\sqrt {b^2\,x^2\,{\left (e\,x\right )}^{2\,n-2}}}{\sqrt {-a^4\,d^2\,n^2\,x^{2\,n}-a^2\,b^2\,d^2\,n^2\,x^{2\,n}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (e x\right )^{n - 1}}{a + b \operatorname {csch}{\left (c + d x^{n} \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________